package com.dog.service.impl;

import com.dog.dao.RegionDAO;
import com.dog.model.Region;
import com.dog.service.IRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * User: Kuttubek Aidaraliev
 * Date: 03.05.2010
 * Time: 7:57:52
 */
@Service
public class RegionService extends BaseService<RegionDAO, Region> implements IRegionService{

    @Autowired
    private RegionDAO regionDAO;


    @Override
    public RegionDAO getDao(){
        return regionDAO;
    }

    @Override
    public Region findByName(String title){
        return regionDAO.findByName(title);
    }
}
